<div class="zluykethoigians">
<h2><?php __('Lũy kế tuần');?></h2>
<p>
<h2>
<?php IF(!empty($zluykethoigians))echo 'Đơn vị: '.$zluykethoigians[0]['Donvi']['tendv']; ?>
</h2>
			
	
<?php
echo $paginator->counter(array(
'format' => __('Hiện có %count% hàng hóa', true)
));
?></p>
<?php
	  echo $this->Html->link(__('Xuất Excel', true), 
            array('action' => 'excel',$tg,$id_dv));

?>
<table cellpadding="0" cellspacing="0" id="tables">
<tr>
	<th><?php echo $paginator->sort('STT','id');?></th>
	<th><?php echo $paginator->sort('Hàng hóa','tenhh');?></th>
	<th><?php echo $paginator->sort('Chỉ tiêu');?></th>
	<th><?php echo $paginator->sort('Số lượng bán');?></th>
	
</tr>
<?php
$i = 0;
foreach ($zluykethoigians as $zluykethoigian):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
	<tr<?php echo $class;?>>
		<td>
			<?php echo $i;//echo $zluykethoigian['Zluykethoigian']['id']; ?>
		</td>
		
		<td>
			<?php echo $zluykethoigian['Zluykethoigian']['tenhh']; ?>
		</td>
		<td>
			<?php echo $zluykethoigian['Zluykethoigian']['soluong']; ?>
		</td>
		<td>
			<?php echo $zluykethoigian['Zluykethoigian']['ban_n']; ?>
		</td>
	
	</tr>
<?php endforeach; ?>
</table>
</div>
<div class="paging">
	<?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
 | 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>

